package com.jierui.meter.frontend.service.impl;

import com.jierui.meter.frontend.domain.DO.TBuComputingIntervalDO;
import com.jierui.meter.frontend.domain.Param.UniversalParam;
import com.jierui.meter.frontend.mapper.TBuComputingIntervalMapper;
import com.jierui.meter.frontend.service.TBuComputingIntervalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: wangjingjing
 * @creat: 2021-06-18 18:17
 */
@Service
public class TBuComputingIntervalServiceImpl implements TBuComputingIntervalService {


    @Autowired
    TBuComputingIntervalMapper tBuComputingIntervalMapper;

    @Override
    public List<TBuComputingIntervalDO> getTotalMeterNum(UniversalParam param) {
        return tBuComputingIntervalMapper.getTotalMeterNumByCityOrgName(param);
    }

    @Override
    public int getTotalMeterNumCount(UniversalParam param) {
        return tBuComputingIntervalMapper.getTotalMeterNumByCityOrgNameCount(param);
    }
}
